package model

import (
	"gorm.io/gorm"
	"time"
)

type Videos struct {
	UserId    int64          `gorm:"column:user_id;type:bigint(20);comment:用户id;not null;" json:"user_id"` // 用户id
	Name      string         `gorm:"column:name;type:varchar(255);comment:用户名;not null;" json:"name"`      // 用户名
	Like      int64          `gorm:"column:like;type:bigint(20);comment:点赞量;not null;" json:"like"`        // 点赞量
	People    int64          `gorm:"column:people;type:bigint(20);comment:收藏量;not null;" json:"people"`    // 收藏量
	Gift      int64          `gorm:"column:gift;type:bigint(20);comment:收到的打赏;not null;" json:"gift"`      // 收到的打赏
	Img       string         `gorm:"column:img;type:varchar(255);comment:图片;not null;" json:"img"`         // 图片
	Id        uint64         `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);default:NULL;" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime(3);default:NULL;" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
}
